package com.yh.construct.decorator.sendMessage;

/**
 * @program: design-patterns
 * @description: ${description}
 * @author: yangh0597@163.com
 * @date: 2021-03-08 21:19
 * @problem:
 **/
public class EmailMessage extends Message{

    private MessageDegree imp;

    public EmailMessage(MessageDegree imp) {
        this.imp = imp;
    }

    @Override
    protected void sendMsg() {

        System.out.println("发送Email的"+imp.getDegree()+"消息");

    }
}
